package com.tf_cut.backend.seller.service;

import com.tf_cut.backend.common.pojo.PageInfo;
import com.tf_cut.backend.common.pojo.Result;
import com.tf_cut.backend.common.service.CommonService;
import com.tf_cut.backend.seller.pojo.SellerOrder;
import com.tf_cut.backend.seller.vo.SellerOrderVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface SellerOrderService extends CommonService<SellerOrderVo, SellerOrder, String> {
	PageInfo<SellerOrderVo> findListSellerOrder(SellerOrderVo avo);
	
	List<SellerOrderVo> findByProjectInfo(String orderId);
	
	Result<Boolean> insertSellers(String json);

	Result<Boolean> saveSellers(SellerOrderVo sellerOrderVo);

	Result<BigDecimal> calSellerGrantAmount(SellerOrderVo avo);

	void updateSellerOrder(SellerOrderVo sellerOrderVo);

	SellerOrderVo findSellerOrder(SellerOrderVo sellerOrderVo);
	
	PageInfo<SellerOrderVo> queryApply(int page, int rows, String sellerName, String serviceName, String startDate,
			String endDate, String orderId);
	
	List<SellerOrderVo> findMoney(String sellerName, String serviceName, String startDate,
			String endDate, String orderId);

	void updateDetailPaymentStatus(String paymentStatus,String id);

	void updateDetailPaymentStatusByOrderId(@Param("paymentStatus")String paymentStatus, @Param("orderId")String orderId);

	List<SellerOrderVo> exportGrant(String sellerName, String serviceName, String startDate, String endDate, String orderId);
}
